<template>
  <div class="root-box">
    <div class="heart-box">
      <div class="left-box heart-segment"></div>
      <div class="right-box heart-segment"></div>
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.root-box{
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  --bg-color: rgba(4, 231, 34, 1);
  .heart-box{
    width: 500px;
    height: 500px;
    background-color: var(--bg-color);
    transform: rotateZ(-45deg) scale(0.9);
    animation: heartsizechange 2s linear infinite;
    position: relative;
    @keyframes heartsizechange {
      0%{
        transform: rotateZ(-45deg) scale(0.9);
      }
      50%{
        transform: rotateZ(-45deg) scale(1);
      }
      100%{
        transform: rotateZ(-45deg) scale(0.9);
      }
    }
    .heart-segment{
      position: absolute;
      width: 500px;
      height: 500px;
      background-color: var(--bg-color);
      border-radius: 50%;
      &.left-box{
        top: -250px;
      }
      &.right-box{
        left: 250px;
      }
    }
  }
}
</style>